package drds.configuration.web.model.drds_home.datanode;

import drds.configuration.db.table_mapping.*;
import drds.configuration.web.model.GroupDataSourceId;
import lombok.Getter;
import lombok.Setter;

import java.sql.Timestamp;

@Table(groupDataSourceId = GroupDataSourceId.DRDS_HOME,//
        tableName = Datanode.__TABLE_NAME__,//
        primaryKey = Datanode.ID,//
        checkBaseColumn = TableInfo.TRUE)//
public class Datanode extends Model {
    public static final String __TABLE_NAME__ = "datanode_datanode";
    //公共字段start
    @ColumnName
    public static final String ID = "id";
    @ColumnName
    public static final String ADD_DATE_TIME = "add_date_time";
    @ColumnName
    public static final String ADD_DATE_TIME_LONG = "add_date_time_long";
    @ColumnName
    public static final String ADD_DATE_TIME_TIMESTAMP = "add_date_time_timestamp";
    //*
    @ColumnName
    public static final String UPDATE_DATE_TIME = "update_date_time";
    @ColumnName
    public static final String UPDATE_DATE_TIME_LONG = "update_date_time_long";
    @ColumnName
    public static final String UPDATE_DATE_TIME_TIMESTAMP = "update_date_time_timestamp";
    @ColumnName
    public static final String VERSION = "version";
    public static Datanode dao = new Datanode();
    @Setter
    @Getter
    @Field(withColumnName = ID)
    private Long id;
    @Setter
    @Getter
    @Field(withColumnName = ADD_DATE_TIME)
    private String addDateTime;
    @Setter
    @Getter
    @Field(withColumnName = ADD_DATE_TIME_LONG)
    private Long addDateTimeLong;
    @Setter
    @Getter
    @Field(withColumnName = ADD_DATE_TIME_TIMESTAMP)
    private Timestamp addDateTimeTimestamp;
    @Setter
    @Getter
    @Field(withColumnName = UPDATE_DATE_TIME)
    private String updateDateTime;
    @Setter
    @Getter
    @Field(withColumnName = UPDATE_DATE_TIME_LONG)
    private Long updateDateTimeLong;
    @Setter
    @Getter
    @Field(withColumnName = UPDATE_DATE_TIME_TIMESTAMP)
    private Timestamp updateDateTimeTimestamp;
    @Setter
    @Getter
    @Field(withColumnName = VERSION)
    private Long version;
    //公共字段end
}
